﻿@model CS795.TravelAgency.Models.FlightViewModel

<tr>
    <td>@Model.SeatType.ToString()</td>
    <td>@Model.Vendor</td>
    <td>@Model.QuoteId</td>
    <td>@Model.Date.ToString("d")</td>
    <td>@Model.Count</td>
    <td>@Model.Departure</td>
    <td>@Model.Destination</td>
    <td>@Model.PricePerSeat.ToString("C")</td>
    <td>@Model.TotalPrice.ToString("C")</td>
    <td>@Model.Status</td>
    @if (Model.Status == "Quoted")
    {
        <td>@Html.ActionLink("Reserve", "ReserveFlight", "Trip", new { id = Model.Id }, null)</td>
    }
    else if (Model.Status == "Reserved")
    {
        <td>
            @Html.ActionLink("Cancel", "CancelFlight", "Trip", new { id = Model.Id }, null) |
            @Html.ActionLink("Confirm", "ConfirmFlight", "Trip", new { id = Model.Id }, null)
        </td>
    }
    else
    {
        <td></td>
    }
</tr>